package com.rockgle.reader;

import android.app.Activity;
import android.app.Application;
import android.content.Context;

public class CustomApplication extends Application {
	private static CustomApplication instance;
	private SortedEntryList data;
	private Activity mainActivity;

	/**
	 * @return the mainActivity
	 */
	public Activity getMainActivity() {
		return mainActivity;
	}

	/**
	 * @param mainActivity the mainActivity to set
	 */
	public void setMainActivity(Activity mainActivity) {
		this.mainActivity = mainActivity;
	}

	public CustomApplication(){
		instance = this;
	}
	
	public void initializeData(){
		this.data = new SortedEntryList();
	}
	/**
	 * @return the entryList
	 */
	public SortedEntryList getData() {
		return this.data;
	}

	/**
	 * @param entryList the entryList to set
	 */
	public void setData(SortedEntryList data) {
		this.data = data;
	}
	
	public static Context getContext() {
        return instance;
    }
}
